package com.jfinal.weixin.demo.xingzuo;

/**
 * Created by wangxiaoyang on 16/8/28.
 */
public class XingzuoBean {

    public String error_code = "";
    public String reason = "";

    public Item result1;

    public String format() {
        if (null == result1) {
            return "星座运势查询失败";
        }
        StringBuffer xingzuo = new StringBuffer();
        xingzuo.append(result1.name);
        xingzuo.append("今日运势为:\n");
        xingzuo.append("幸运色: ");
        xingzuo.append(result1.color);
        xingzuo.append("\n");
        xingzuo.append("爱情指数: ");
        xingzuo.append(result1.love);
        xingzuo.append("\n");
        xingzuo.append("幸运号码: ");
        xingzuo.append(result1.number);
        xingzuo.append("\n");
        xingzuo.append("幸运星座: ");
        xingzuo.append(result1.QFriend);
        xingzuo.append("\n");
        xingzuo.append("整体运势: ");
        xingzuo.append(result1.summary);
        return xingzuo.toString();
    }

    public static class Item {
        public String resultcode = "";
        public String error_code = "";
        public String name = "";
        public String datetime = "";
        public String date = "";
        public String all = "";
        public String color = "";
        public String health = "";
        public String love = "";
        public String money = "";
        public String number = "";
        public String QFriend = "";
        public String summary = "";
        public String work = "";
    }
}
